package sjtu.ist.warehouse4ws.service;

import java.util.List;

import sjtu.ist.warehouse4ws.model.User;

public interface UserService {

	User get(String id);
	void save(User user);
	void update(User user);
	void delete(String id);
	void delete(User user);
	List<User> findByName(String name);
	List<User> findByCompany(String companyId);
	List<User> getUserList(String companyId, int type);

	
	
	void registUser(String name,String password,String company);
	boolean isRegisted(String name,String password,String company);
	boolean isUserNameRegisted(String name,String password);
	boolean isUserNameAdd(String name,String password);
	boolean isCompanyNameRegisted(String name,String password,String companyName);
}
